
# -*- coding: UTF-8 -*-
from django import template
import os.path

register = template.Library()

@register.filter
def filename(path):
    return os.path.basename(path)

